package com.recharge.wk.mapper;

import com.recharge.wk.domain.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by CAOQI on 2016/12/17.
 */
public interface IProductMapper {

    Product selectOne(Product product);

    List<Product> selectList(@Param("productId") String productId,
                             @Param("productName") String productName, @Param("curr") Integer curr, @Param("pageSize") Integer pageSize);

    int count(@Param("productId") String productId,
                             @Param("productName") String productName);

    int update(Product product);

    int insert(Product product);
}
